$(function () {
$("#upload_input").on("change",function () {
    var formData = new FormData();
    formData.append("upload", this.files[0]);
    formData.append("accountid", $("#accountid").val());

    $.ajax({
        url: "/uploadBook.do",
        method:"post",
        data:formData,
        processData: false,
        contentType: false,
        success:function (res) {
            mui.alert(res.message);
        }
    })


})
$("#upload_button").on("click",function () {
    $("#upload_input").click();
})
$('#mybooks').on('tap', function() {
        window.location.href = "mulu.html"
    });
})
